
const Sequelize = require('sequelize');

import sequelize from './db/sequelize';

/**
 * 单张图片实体
 */
const AuthorContact = sequelize.define('author_contacts', {
  id                    : {type: Sequelize.STRING,   allowNull: false, primaryKey: true },
  uid                   : {type: Sequelize.STRING,   allowNull: false },
  type                  : {type: Sequelize.INTEGER,  allowNull: true},
  author_id             : {type: Sequelize.STRING,   allowNull: true },
  status                : {type: Sequelize.INTEGER,  allowNull: true , defaultValue : 1 },
  ext                   : {type: Sequelize.TEXT,     allowNull: true },
  ctime                 : {type: Sequelize.INTEGER,  allowNull: true }
},
{
    charset: 'utf8'
});

AuthorContact.sync({force: false}).then(function(){});
export default AuthorContact;